Explanation: Flexbox ek powerful layout tool hai jo container ke andar ke items ko horizontally ya vertically arrange karta hai.
Important: Parent ko display: flex dene se wo container ban jata hai aur uske andar ke elements "flex items".
Explanation: Flexbox me 2 axis hote hain — Main Axis (direction of flex items) and Cross Axis (opposite direction). flex-direction se hum main axis ko control karte hain.
Common Properties:
justify-content → Horizontal alignment (main axis)
align-items → Vertical alignment (cross axis)
gap → Space between items
Example: Responsive Navigation Layout using Flexbox: